//
//  TeamDetailCell.m
//  WE
//
//  Created by iMacOne on 15/11/19.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "TeamDetailCell.h"
#import "Head.h"
@interface TeamDetailCell ()
@property (nonatomic, strong)UIImageView * aImgeView;
@property (nonatomic, strong)UILabel * nameLbl;
@property (nonatomic, strong)UILabel * idenLbl;
@property (nonatomic, strong)UILabel * titleLbl;

@property (nonatomic, strong)UILabel * contentLbl;
@end

@implementation TeamDetailCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
        self.aImgeView = [[UIImageView alloc] initWithFrame:CGRectMake(margin_10 * Width, margin_10 * Height, margin_20* Width , margin_20* Width)];
        self.aImgeView.layer.masksToBounds = YES;
        self.aImgeView.layer.cornerRadius = 10*Width;
        self.aImgeView.backgroundColor = DEBUG_CLOLR;
        
        self.nameLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_aImgeView.frame) + margin_10, _aImgeView.frame.origin.y, margin_36, margin_15)];
        _nameLbl.font = FONT(12);
        _nameLbl.text = @"警惕的";
        
        self.idenLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_nameLbl.frame) + margin_5, _aImgeView.frame.origin.y + 3 , margin_90, margin_10)];
        _idenLbl.font = FONT(10);
        _idenLbl.text = @"副主治医生";
        
        self.specialLbl = [[UILabel alloc] initWithFrame:CGRectMake(WindowWidth - 60, _idenLbl.frame.origin.y , 60, margin_10)];
        _specialLbl.font = FONT(10);
        _specialLbl.text = @"首席专家";
        _specialLbl.textColor = [UIColor orangeColor];
        
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(_nameLbl.frame.origin.x, CGRectGetMaxY(_nameLbl.frame) + margin_5, 200*Width, margin_10)];
        _titleLbl.font = FONT(10);
        _titleLbl.text = @"副主治医生前段时间播出的 <<医馆笑谈>> 中  樱桃和虾";
        _titleLbl.textColor = CONTENTCOLOR;
        self.contentLbl = [[UILabel alloc] initWithFrame:CGRectMake(_nameLbl.frame.origin.x, CGRectGetMaxY(_titleLbl.frame) + margin_5, 300*Width, margin_10)];
        _contentLbl.font = FONT(12);
        _contentLbl.textColor = CONTENTCOLOR;
        _contentLbl.text = @"前段时间播出的 <<医馆笑谈>> 中  樱桃和虾通吃 不能乱吃 乱搭配哦...";
//        _contentLbl.numberOfLines = 0;
        
        self.adviLbl = [[UILabel alloc] initWithFrame:CGRectMake(_nameLbl.frame.origin.x, CGRectGetMaxY(_contentLbl.frame) + 8, 60, 20)];
        _adviLbl.layer.masksToBounds = YES;
        _adviLbl.layer.cornerRadius = 3;
        _adviLbl.layer.borderWidth = 1;
        _adviLbl.layer.borderColor = [UIColor greenColor].CGColor;
        _adviLbl.font = FONT(10);
        _adviLbl.text = @"预约挂号";
        _adviLbl.textColor = [UIColor greenColor];
        _adviLbl.textAlignment = NSTextAlignmentCenter;
        
        self.onlineLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_adviLbl.frame) + margin_5, _adviLbl.frame.origin.y, 60, 20)];
        _onlineLbl.layer.masksToBounds = YES;
        _onlineLbl.layer.cornerRadius = 3;
        _onlineLbl.layer.borderWidth = 1;
        _onlineLbl.layer.borderColor = [UIColor greenColor].CGColor;
        _onlineLbl.font = FONT(10);
        _onlineLbl.text = @"在线预约";
        _onlineLbl.textColor = [UIColor greenColor];
        _onlineLbl.textAlignment = NSTextAlignmentCenter;
        
        [self.contentView addSubview:_adviLbl];
        [self.contentView addSubview:_aImgeView];
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_contentLbl];
        [self.contentView addSubview:_specialLbl];
        [self.contentView addSubview:_idenLbl];
        [self.contentView addSubview:_nameLbl];
        [self.contentView addSubview:_onlineLbl];

        

        
    }
    return self;
}


@end
